<template>
    <div class="lexicalChongguan">
        <div class="topBox">
            <div class="btn">
                布置单词
            </div>
        </div>
        <div class="dataList">

            <div class="lableContent">
                <div style="width: 5%;">
                    序号
                </div>
                <div style="width: 25%;">
                    词书
                </div>
                <div style="width: 10%;">
                    词汇量
                </div>
                <div style="width: 10%;">
                    级别
                </div>
                <div style="width: 10%;">
                    完成闯关人数
                </div>
                <div style="width: 10%;">
                    布置日期
                </div>
                <div style="width: 10%;">
                    操作
                </div>
                <div style="width: 10%;">
                    已背单词表
                </div>
                <div style="width: 10%;">
                    测试卷下载
                </div>
            </div>

            <div class="dataContent">

                <div class="dataItem" v-for="(itm, index) in 10" :key="index">
                    <div class="" style="width: 5%;">
                        {{ index + 1 }}
                    </div>
                    <div class="title" style="width: 25%;">
                        小学同步-人教PEP版-三年级-上册-Unit1,Unit2,Unit3,Unit4,Unit5,Unit6
                    </div>
                    <div class="" style="width: 10%;">
                        255
                    </div>
                    <div class="" style="width: 10%;">
                        四A
                    </div>
                    <div class="" style="width: 10%;color: #3FB9E2;cursor: pointer;" @click="handlePhlist">
                        1/2
                    </div>
                    <div class="" style="width: 10%;">
                        06月03日 星期一
                    </div>
                    <div class="" style="width: 10%;color: #3FB9E2;cursor: pointer;">
                        撤销
                    </div>

                    <div class="" style="width: 10%;color: #3FB9E2;cursor: pointer;">
                        下载
                    </div>
                    <div class="" style="width: 10%;display: flex;color: #3FB9E2;">
                        <div style="cursor: pointer;">
                            考试卷
                        </div>
                        <div style="margin-left: 5px;cursor: pointer;">
                            查答案
                        </div>
                    </div>

                </div>

            </div>

        </div>


        <div class="pageBox">
            <el-pagination @current-change="handleCurrentChange" background :current-page.sync="pageInfo.limit"
                :page-size="pageInfo.limit" layout="total, prev, pager, next" :total="pageInfo.total">
            </el-pagination>
        </div>




        <el-dialog :visible.sync="phShow" center :show-close="false">

            <div class="phContent">
                <div class="titleBox">
                    小学同步-人教PEP版-三年级-上册-Unit1,Unit2,Unit3,Unit4,Unit5,Unit6
                </div>
                <div class="closeBox" @click="phShow = false">
                    <i class="el-icon-close"></i>
                </div>
                <div class="lableContent">
                    <div class="" style="width: 20%;">
                        学生
                    </div>
                    <div class="" style="width: 15%;">
                        状态
                    </div>
                    <div class="" style="width: 15%;">
                        当前/总关卡
                    </div>
                    <div class="" style="width: 15%;">
                        本关进度
                    </div>
                    <div class="" style="width: 15%;">
                        已背单词
                    </div>
                    <div class="" style="width: 20%;">
                        级别
                    </div>

                </div>

                <div class="dataContent">

                    <div class="dataitem" v-for="(item, index) in 9" :key="index">
                        <div class="userInfo" style="width: 20%;">
                            <img src="@/static/image/avatar.jpg" alt="" srcset="">
                            <div>妍与韩</div>
                        </div>
                        <div style="width: 15%;">
                            进行中
                        </div>
                        <div style="width: 15%;">
                            1/11
                        </div>
                        <div style="width: 15%;">
                            10/10
                        </div>
                        <div style="width: 15%;">
                            100
                        </div>
                        <div class="dw" style="width: 20%;">
                            <img src="@/static/image/wz.jpg" alt="" srcset="">
                            <div>王者</div>
                        </div>

                    </div>

                </div>



            </div>

        </el-dialog>

    </div>
</template>
<script>
export default {
    data() {
        return {
            pageInfo: {
                page: 1,
                limit: 10,
                total: 100,
            },
            phShow: false,
        }
    },
    methods: {
        handlePhlist() {
            this.phShow = true
        },
        handleCurrentChange(val) {
            console.log(`当前页: ${val}`);
            this.pageInfo.page = val
        },
    }
}

</script>
<style scoped lang="scss">
.lexicalChongguan {
    width: 100%;
    // min-height: 669px;
    background: #FFFFFF;
    border-radius: 4px 4px 4px 4px;
    margin-top: 16px;
    padding: 16px;
    box-sizing: border-box;

    .topBox {
        display: flex;
        justify-content: end;

        .btn {
            width: 140px;
            height: 40px;
            background: #4BA840;
            border-radius: 4px 4px 4px 4px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 12px;
            color: #FFFFFF;
            line-height: 40px;
            text-align: center;
            cursor: pointer;
        }
    }

    .dataList {
        margin-top: 18px;

        .lableContent {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: rgba(0, 0, 0, 0.4);
            line-height: 20px;
            display: flex;
        }

        .dataContent {
            height: 543px;
            overflow: auto;

            .dataItem {
                display: flex;
                align-items: center;
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: rgba(0, 0, 0, 0.9);
                line-height: 20px;
                height: 64px;
                border-top: 1px solid #E7E7E7;

                .title {
                    // padding-right: 10px;
                    // box-sizing: border-box;
                }
            }

            .dataItem:hover {
                background-color: #EAF9E8;
            }
        }
    }


}

.pageBox {
    // position: absolute;
    // bottom: 5px;
    // right: 60px;
    display: flex;
    justify-content: end;
}

.phContent {
    width: 685px;
    height: 600px;
    background: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    margin: 0 auto;
    position: relative;

    .titleBox {
        width: 685px;
        height: 56px;
        background: #4BA840;
        border-radius: 8px 8px 0px 0px;
        font-family: PingFang SC, PingFang SC;
        font-weight: 500;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 56px;
        text-align: center;
    }

    .closeBox {
        position: absolute;
        top: 21px;
        right: 21px;
        cursor: pointer;
        color: #ffffff;
    }

    .lableContent {
        display: flex;
        font-family: PingFang SC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.4);
        line-height: 20px;
        margin-top: 20px;
        padding: 0 25px;
        box-sizing: border-box;
    }

    .dataContent {
        height: 500px;
        padding: 0 25px;
        box-sizing: border-box;
        overflow: auto;

        .dataitem {
            display: flex;
            align-items: center;
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: rgba(0, 0, 0, 0.9);
            line-height: 20px;
            height: 52px;
            border-top: 1px solid #E7E7E7;
            cursor: pointer;

            .userInfo {
                display: flex;
                align-items: center;

                img {
                    width: 40px;
                    height: 40px;
                    margin-right: 5px;
                }
            }

            .dw {
                display: flex;
                align-items: center;

                img {
                    width: 25px;
                    height: 25px;
                    margin-right: 5px;

                }
            }
        }
        .dataitem:hover{
            background-color: #EAF9E8;
        }
    }
}

::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #4BA840;
}

::v-deep .el-pagination.is-background .el-pager li:hover {
    color: #ffffff;
    background-color: #4BA840;
}

::v-deep .el-dialog {
    background-color: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}
</style>